package com.tengroup.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("questions")
public class Question implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @TableField("stem")
    private String stem;

    @TableField("question_type")
    private String questionType;

    @TableField("answer")
    private String answer;

    @TableField("options")
    private String options;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField("difficulty")
    private String difficulty;

    @TableField("subject_id")
    private String subjectId;

    @TableField("analysis")
    private String analysis;

    @TableField("del_flag")
    private Boolean delFlag = false;
}